package com.atguigu.d_systemstream;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

public class Demo {
    public static void main(String[] args) throws IOException {
        //不用Scanner完成键盘录入字符串功能

        InputStream in = System.in;

        //字节输入流 -> 字符输入流 -> 高效字符输入流
        InputStreamReader isr = new InputStreamReader(in);

        BufferedReader br = new BufferedReader(isr);

        System.out.println("请您输入一句话 : ");
        String line = br.readLine();

        System.out.println("line = " + line);
        br.close();
    }
}
